package business.application.test_bed;

import java.io.IOException;

import business.application.DBSimulator;

public class Efi {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws IOException, InterruptedException {

		int nodes[] = {7,31,127,511};
		int files[] = {180,750,2946,16699};
		
		for(int n=0;n<nodes.length;n++) {
			for(int f=0;f<files.length;f++) {
				System.out.println("====nodes: "+nodes[n]+" files: "+files[f]);
				
				//DBSimulator simulator = new DBSimulator(null,nodes[n], files[f]);
				
				String cmd = "java -jar test.jar "+nodes[n]+" "+files[f]+" -Xmx4G";
				System.out.println(cmd);
				
				Process p = Runtime.getRuntime().exec(cmd);
				int code = p.waitFor();
				System.out.println(code);
				p.destroy();
				/*if(p.exitValue() == 0) {
					p.destroy();
				}*/								
			}
		}
	}

}
